package coffeeManager;

import java.awt.EventQueue;
import java.lang.*;
import javax.swing.DropMode;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class LoginForm {

	private JFrame frame;
	private JTextField txtUser;
	private JTextField txtPassword;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LoginForm window = new LoginForm();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public LoginForm() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 450, 300);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JButton btnLogin = new JButton("Login");
		btnLogin.setBounds(166, 127, 89, 23);
		frame.getContentPane().add(btnLogin);
		
		txtUser = new JTextField();
		//txtUser.setDropMode(DropMode.ON);
		txtUser.setBounds(169, 63, 220, 20);
		frame.getContentPane().add(txtUser);
		txtUser.setColumns(10);
		
		txtPassword = new JTextField();
		txtPassword.setBounds(169, 96, 220, 20);
		frame.getContentPane().add(txtPassword);
		txtPassword.setColumns(10);
		
		JLabel lblUserId = new JLabel("User ID :");
		lblUserId.setBounds(72, 66, 46, 14);
		frame.getContentPane().add(lblUserId);
		
		JLabel lblPassword = new JLabel("PassWord:");
		lblPassword.setBounds(72, 99, 81, 14);
		frame.getContentPane().add(lblPassword);
	}
}
